/*
 * Copyright 2015 Mat?j Kripner
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Decrypt the input by the vernam cipher. The input has to be in format key!decrypted where the lengths of key and
// decrypted (message) has to be equal.

// VERSION 1
// Note that this program use alphabet (not ASCII) values of the key, so there has to be that ugly line of minuses. Please
// consider that when you compare the program's length. For illustration, you can see the version that uses ASCII values
// instead, marked as version 2

>+[--------------------------------------------------------------->,---------------------------------]>+[>,]<[[<]<[<]>>[>[>]>>-[<]<[<]>>-]+<[-]>[>]+>->.[-]+>]

// VERSION 2
// please see the comments above

>+[+++++++++++++++++++++++++++++++++>,---------------------------------]>+[>,]<[[<]<[<]>>[>[>]>>-[<]<[<]>>-]+<[-]>[>]+>->.[-]+>]